﻿function ajaxmethod(url, method) {
    $.ajax({
        type: 'POST',
        async: false,
        url: url,
        success: function (data) {
            method(data);
        },
        cache: false
    });
};